/**
 * @author 陈泰来
 * @version V1.0
 * @Project echo-java-base
 * @Title
 * @Description *
 * @Package designmodel.observe2.delegate
 * @date 2021/3/4 1:48 下午
 * @Copyright:学如逆水行舟，不进则退 .
 */
package base.jicheng;

public class Person {

    void print() {
        System.out.println("父类方法 print");
    }

    void fun() {
        System.out.println("父类方法 fun");
        print();
    }

}

class Student extends Person {

    @Override
    void print() {
        super.print();
        System.out.println("子类方法 print");
    }
}

class Test {
    public static void main(String[] args) {
        Student su = new Student();
        su.print();
    }
}
